package com.csnf.service.impl;

import com.csnf.mapper.AccountMapper;
import com.csnf.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StorageSericeImpl implements AccountService {

    @Autowired
    AccountMapper accountMapper;

    //减余额
    @Override
    public int reduceAccount(String userId,Integer money) {
        return accountMapper.reduceAccount(userId,money);
    }
}
